package com.cbt.cbtBlog.vo;

import com.cbt.cbtBlog.enums.ResultEnum;

public class ResultVO {
   private Integer code;
   private String msg;
   private Object data;

   public String toString() {
      return "ResultVO [code=" + this.code + ", msg=" + this.msg + ", data=" + this.data + "]";
   }

   public ResultVO() {
   }

   public ResultVO(ResultEnum enums, Object data) {
      this.code = enums.getCode();
      this.msg = enums.getMsg();
      this.data = data;
   }

   public ResultVO(ResultEnum enums) {
      this.code = enums.getCode();
      this.msg = enums.getMsg();
   }

   public ResultVO(Integer code, String msg, Object data) {
      this.code = code;
      this.msg = msg;
      this.data = data;
   }

   public ResultVO(Integer code, String msg) {
      this.code = code;
      this.msg = msg;
   }

   public Integer getCode() {
      return this.code;
   }

   public void setCode(Integer code) {
      this.code = code;
   }

   public String getMsg() {
      return this.msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public Object getData() {
      return this.data;
   }

   public void setData(Object data) {
      this.data = data;
   }

}
